Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

record access request create and review events #52170

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

flyinghermit
Copy link
Contributor

@flyinghermit flyinghermit commented Feb 14, 2025

When a user creates or reviews Access Request, the event is now counted and added to the user activity report.

Cloud prehog twin PR https://github.com/gravitational/cloud/pull/12092

Part of https://github.com/gravitational/teleport.e/issues/5946

Sample activity record with access request event:

{
  "report_uuid": "hWMhL3WMT9ilPjPYxRAeLg==",
  "cluster_name": "Qe8aKevkim6h3hReJvEnWzdVoCW49OjE2qYVEqlU4Ng=",
  "reporter_hostid": "Gl+XkAEDry4dQszdh/U8dAytD/WOadbWioX1ecu3ZIE=",
  "start_time": {
   "seconds": 1739912160
  },
  "records": [
   {
    "user_name": "SD0EJQVYoYSQNWwA4DOtaWjjPr1dPLkh6FujiZH46UA=",
    "user_kind": 1,
    "access_requests_reviewed": 2
   },
   {
    "user_name": "i/P37sO9T0Xcd6HFV9N0AM05h1faMuyP8FQh7wASx0I=",
    "user_kind": 1,
    "certificates_issued": 1,
    "access_requests_created": 2
   }
  ]
 }

@flyinghermit flyinghermit marked this pull request as ready for review February 18, 2025 21:33
@flyinghermit flyinghermit added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v17 labels Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v17 no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants